<?php

use app\common\services\StaticServices;
use yii\helpers\Url;

?>

<?= Yii::$app->view->renderFile('@app/modules/admin/views/common/tab_permissions.php', ['tab' => 'add']) ?>
<div class="ui equal width grid">
    <div class="column">
        <div class="panel">
            <div class="panel-alone-content">
                <form class="ui form">
                    <div class="field">
                        <label>权限:</label>
                        <input type="text" name="permission" placeholder="不能少于3个字"
                               value="<?= isset($name) ? $name : '' ?>">
                    </div>


                    <input type="hidden" name="_csrf" id='csrf' value="<?= Yii::$app->request->csrfToken ?>">
                    <input type="hidden" name="old_name" value="<?= isset($name) ? $name : '' ?>">
                    <button class="ui green basic button add  " type="button">提交</button>
                </form>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    require(['modules/permissions/add_permission'], function (add_permission) {
        add_permission.add_permission()
    });
</script>